package com.zhongke.home.ui.viewmodel

import com.zhongke.common.base.viewmodel.ZKBaseModel
import com.zhongke.common.base.viewmodel.ZKBaseViewModel
import com.zhongke.common.ext.request
import com.zhongke.common.http.ZKHttpApi
import com.zhongke.core.http.httpbase.ResultStateWrapper
import com.zhongke.home.api.ZKHomeApi

/**
 * @author: 陈元旺
 * @date: 2022/5/6
 * @description：
 */
class ZKHomeFragmentViewModel: ZKBaseViewModel<ZKBaseModel>() {
    var versionData: ResultStateWrapper<Any> = ResultStateWrapper()

    fun getVersion() {
        request({
            ZKHttpApi.INSTANCE.getApi(ZKHomeApi::class.java).getVersion()
        }, versionData, true)
    }
}